package com.dabai.iot.core.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dabai.common.tenant.core.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 告警记录表 实体类
 *
 * @author kev1n
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("iot_alarm_record")
public class AlarmRecordEntity extends TenantEntity {

    /**
     * 主键id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 告警配置id
     */
    private Long alarmId;

    /**
     * 产品id
     */
    private Long productId;

    /**
     * 设备id
     */
    private Long deviceId;

    /**
     * 跟踪ID
     */
    private String traceId;

    /**
     * 告警描述
     */
    private String description;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    private String delFlag;

}
